package com.ruoyi.liangshi.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.utils.sql.LambdaQueryWrapperX;
import com.ruoyi.liangshi.domain.BsOrder;
import com.ruoyi.liangshi.vo.query.OrderQuery;

import java.util.List;

/**
 * @Author LiuJin
 * @Date: Create in 2023-11-16 15:17
 * @Description: this class is
 */
public interface BsOrderMapper extends BaseMapper<BsOrder> {
//    default List<BsOrder> getOrderList(OrderQuery orderQuery){
//        return selectList(new LambdaQueryWrapperX<BsOrder>().betweenIfPresent(BsOrder::getOpenTime,orderQuery.getBeginTime(),orderQuery.getEndTime())
//        .betweenIfPresent(BsOrder::getItemLastMoney,orderQuery.getMinMoney(),orderQuery.getMaxMoney()));
//    }

    List<BsOrder> getOrderList(OrderQuery orderQuery);
}
